﻿using Surpass.Model.Dto.RequestParamsDto;
using Surpass.Model.Dto.ResponseDto.ResponseModel.ResultModel;
using Surpass.Model.SysDomain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Surpass.Repository.IRepository
{
    public interface ISysUserRepository:IDataBase
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="loginParams"></param>
        Task<ResponseModel<SysUser>> Login(LoginParams loginParams);
        Task<PageResponse<SysUser>> GetUserList(string uname, string email, int pageIndex = 1, int pageSize = 10);

        Task<ResponseModel<bool>> AddSysUser(SysUserParams sysUserParams);

        ResponseModel<bool> EditSysUser(SysUserParams sysUserParams);

        ResponseModel<bool> DeleteSysUser(SysUserParams sysUserParams);

        Task<ResponseModel<bool>> BatchAddAsync(List<SysUser> sysUsers);

    }
}
